﻿<%@ Page Title="" Language="C#" MasterPageFile="/Common/Master.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentForm" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHtml" runat="Server">
    <div data-options="region:'west',split:true" title="" style="width: 250px; padding: 10px; padding-left: 16px; border-bottom: 0px; border-left: 0px; border-top: 0px;">
        <div id="menu" class="easyui-menu" style="width: 100px;">
            <div onclick="$.fn.EasyUiTree.Add(options)" iconcls="icon-tree_add">添加</div>
            <div onclick="$.fn.EasyUiTree.Remove(options)" iconcls="icon-tree_remove">删除</div>
            <div onclick="$.fn.EasyUiTree.Refresh(options)" iconcls="icon-tree_refresh">刷新</div>
            <div class="menu-sep"></div>
            <div onclick="$.fn.EasyUiTree.Up(options)" iconcls="icon-tree_up">上移</div>
            <div onclick="$.fn.EasyUiTree.Down(options)" iconcls="icon-tree_down">下移</div>
             <div>
                <span>展开节点</span>
                <div style="width: 150px;">
                    <div onclick="mtree.ExpandLevel('1');">一级</div>
                    <div onclick="mtree.ExpandLevel('2');">二级</div>
                    <div onclick="mtree.ExpandLevel('3');">三级</div>
                    <div onclick="mtree.ExpandLevel('4');">四级</div>
                    <div onclick="mtree.ExpandLevel('5');">五级</div>
                </div>
            </div>
        </div>
        <ul class="easyui-tree" id="tree"></ul>
    </div>
    <div data-options="region:'center'" style="overflow: hidden; border-bottom: 0px; border-right: 0px; border-top: 0px;">
        <iframe scrolling="auto" frameborder="0" id="iframeRight" style="width: 100%; height: 100%;"></iframe>
    </div>
    <script type='text/javascript'>
        var options;
        $(function () {
            options = {
                url: '/system/tree/json.ashx',
                tn: $.getUrlParamer("name", "") != "" ? $.getUrlParamer("name", "") : 'System_Menu',
                id: 'tree',
                menuID: 'menu',
                UrlUpdate: $.getUrlParamer("name", "") == "System_Category" ? "Category.aspx" : "Right.aspx"
            };
            $.fn.EasyUiTree.Init(options);
        });
    </script>
</asp:Content>
